package com.ruoyi.smart.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 工序对象 smart_process
 * 
 * @author minwei
 * @date 2022-04-19
 */
public class SmartProcess extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 父工序 */
    @Excel(name = "父工序")
    private Long parentId;

    /** 前工序 */
    @Excel(name = "前工序")
    private Long beforeId;

    /** 后工序 */
    @Excel(name = "后工序")
    private Long nextId;

    /** 产品ID */
    @Excel(name = "产品ID")
    private String productId;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 注释 */
    @Excel(name = "注释")
    private String note;

    /** 类名 */
    @Excel(name = "类名")
    private String calssName;

    /** 创建人ID */
    @Excel(name = "创建人ID")
    private String createUserId;

    /** 创建日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 工作流编号 */
    @Excel(name = "工作流编号")
    private Long sort;

    /** 数据状态 */
    @Excel(name = "数据状态")
    private Long state;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setBeforeId(Long beforeId) 
    {
        this.beforeId = beforeId;
    }

    public Long getBeforeId() 
    {
        return beforeId;
    }
    public void setNextId(Long nextId) 
    {
        this.nextId = nextId;
    }

    public Long getNextId() 
    {
        return nextId;
    }
    public void setProductId(String productId) 
    {
        this.productId = productId;
    }

    public String getProductId() 
    {
        return productId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setNote(String note) 
    {
        this.note = note;
    }

    public String getNote() 
    {
        return note;
    }
    public void setCalssName(String calssName) 
    {
        this.calssName = calssName;
    }

    public String getCalssName() 
    {
        return calssName;
    }
    public void setCreateUserId(String createUserId) 
    {
        this.createUserId = createUserId;
    }

    public String getCreateUserId() 
    {
        return createUserId;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("parentId", getParentId())
            .append("beforeId", getBeforeId())
            .append("nextId", getNextId())
            .append("productId", getProductId())
            .append("name", getName())
            .append("note", getNote())
            .append("calssName", getCalssName())
            .append("createUserId", getCreateUserId())
            .append("createDate", getCreateDate())
            .append("sort", getSort())
            .append("state", getState())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .toString();
    }
}
